<center>
    <div style="width:400px">
        <table cellspacing='0' cellpadding='0' border='0' width='100%'>
            <tr>
                <td align='left'>
                    <a class='small_button' target='_blank' href="/frmShippingFeePdf?mode={$mode}">印刷プレビュー</a>
                </td>
                <td align='right'>
                	{if $mode == 'list'}
                    	<a class='small_button' href='/maitains'>閉じる</a>
                    {else}
                    	<a class='small_button' href='/'>閉じる</a>
                    {/if}
                </td>
            </tr>
        </table>
    </div>
    <br/><br/>
    <div id='shipping_content' style="width:800px">
        {if ($arrShipping)}
            <table id='tblShippingFee' cellspacing='0' cellpadding='0' border='0' width='100%'>
                <tr>
                    <th>荷主コード</th>
                    <th>届先エリアコード</th>
                    <th>配送手数料単価</th>
                </tr>
                {foreach $arrShipping as $item}
                    <tr>
                        <td align='left'>
                        	<input type='text' value='{$item['ShippingFeeModel']['shipper_cd']}' 
                        		   class='ajax_shipping_fee_{$item['ShippingFeeModel']['id']}'
                        		   data-url = '/ajax/shipping_fee'
                        		   data-field = 'shipper_cd'
                            />                     
                        </td>
                        <td align='left'>
                        	<input type='text' value='{$item['ShippingFeeModel']['area_cd']}' 
                        		   class='ajax_shipping_fee_{$item['ShippingFeeModel']['id']}'
                        		   data-url = '/ajax/shipping_fee'
                        		   data-field = 'area_cd'
                            />                         	
                        </td>
                        <td align='left'>
                        	<input type='text' value='{$item['ShippingFeeModel']['delivery_fee']}' 
                        		   class='ajax_shipping_fee_{$item['ShippingFeeModel']['id']}'
                        		   data-url = '/ajax/shipping_fee'
                        		   data-field = 'delivery_fee'
                            />                         	
                        </td>
                    </tr>
                {/foreach}
					<tr id='newRec'>
	                        <td align='left'>
	                        	<input type='text' value='' 
	                        		   class='ajax_shipping_fee_insert'
	                        		   data-url = '/ajax/shipping_fee'
	                        		   data-field = 'shipper_cd'
	                            /> 
	                        </td>
	                        <td align='left'>
	                        	<input type='text' value='' 
	                        		   class='ajax_shipping_fee_insert'
	                        		   data-url = '/ajax/shipping_fee'
	                        		   data-field = 'area_cd'
	                            /> 
	                        </td>	 
	                        <td align='left'>
	                        	<input type='text' value='' 
	                        		   class='ajax_shipping_fee_insert'
	                        		   data-url = '/ajax/shipping_fee'
	                        		   data-field = 'delivery_fee'
	                            /> 
	                        </td>	                                               
	                </tr>                
            </table>
        {else}
            データーが有りません。
        {/if}
    </div>
</center>